package com.twl.app.base.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * 记录计算所状态(封账)
 * @author uatzhangxc
 *
 */

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true,dynamicUpdate = true)
@Table(name = "lockstate")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_LOCKSTATE_DID", allocationSize = 1)
public class LockState implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id ;		//主键
	private String lockDate ;  //被锁住的考勤日期
	private String lockCheck ;	//记录状态  1锁住不允许计算  0未被锁住可以计算
	
	

	public LockState(Integer id, String lockDate, String lockCheck) {
		super();
		this.id = id;
		this.lockDate = lockDate;
		this.lockCheck = lockCheck;
	}

	public LockState() {
		super();
	}

	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="instance_sequence")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "lockDate" )
	public String getLockDate() {
		return lockDate;
	}

	public void setLockDate(String lockDate) {
		this.lockDate = lockDate;
	}
	
	@Column(name = "lockCheck" )
	public String getLockCheck() {
		return lockCheck;
	}

	public void setLockCheck(String lockCheck) {
		this.lockCheck = lockCheck;
	}

	@Override
	public String toString() {
		return "Lock [lockDate=" + lockDate + ", lockCheck=" + lockCheck + "]";
	}
	
	
}
